/**
 * 
 */
package cn.terrence.myrpc.common.registercenter.zookeeper;

import java.io.Serializable;

/**
 * @author Terrence2013
 * 2018年1月23日 下午5:12:20
 * ZKClient连接上下文
 */
public final class ZkClientContext implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5244594344983074937L;
	
	/**
	 * 主机IP端口,格式为(xxx:xx;xxx:xx)
	 */
	private String ipWithPorts;
	/**
	 * 会话超时时间
	 */
	private int sessionTimeout;
	/**
	 * 连接超时时间
	 */
	private int connectionTimeout;
	
	
	public String getIpWithPorts() {
		return ipWithPorts;
	}
	public void setIpWithPorts(String ipWithPorts) {
		this.ipWithPorts = ipWithPorts;
	}
	public int getSessionTimeout() {
		return sessionTimeout;
	}
	public void setSessionTimeout(int sessionTimeout) {
		this.sessionTimeout = sessionTimeout;
	}
	public int getConnectionTimeout() {
		return connectionTimeout;
	}
	public void setConnectionTimeout(int connectionTimeout) {
		this.connectionTimeout = connectionTimeout;
	}
}
